# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-googleapis-common-protos
_pyname=googleapis-common-protos
pkgver=1.52.0
pkgrel=2
pkgdesc="Common protobufs used in Google APIs for Python"
url="https://pypi.org/project/googleapis-common-protos/"
arch="noarch !ppc64le"  # limited by py3-grpcio
license="Apache-2.0"
depends="python3 protobuf py3-grpcio"
makedepends="py3-setuptools"
options="!check"  # no tests in pypi artifact
source="https://files.pythonhosted.org/packages/source/g/googleapis-common-protos/googleapis-common-protos-$pkgver.tar.gz"

builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	chmod -R +r "$pkgdir"/usr/lib/python*/site-packages/
}
sha512sums="470d949379a6aa21875b1c5851de54391847f89136b0b7ee84ac68931388a6294f53be167b6095265b2c2c0f30c7d8c71a4e5a546638670d24a9bd544538ff1a  googleapis-common-protos-1.52.0.tar.gz"
